﻿using MyMES.Error;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMES.Domain.zmc
{
    /// <summary>
    /// 生产单号表
    /// </summary>
    public class Productionorders
    {
        [Key]
        public int ProductionordersId { get; set; }

        /// <summary>
        /// 生产单号编号
        /// </summary>
        public string ProductionordersNo { get; set; }

        /// <summary>
        /// 生产单号名称
        /// </summary>
        public string ProductionordersName { get; set; }

        /// <summary>
        /// 生产主题
        /// </summary>
        public string Topic { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string Head { get; set; }

        /// <summary>
        /// 所在部门
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// 生产单状态  0：未下单    2：已下单
        /// </summary>
        public bool ProductionordersStatus { get; set; }

        /// <summary>
        /// 删除标志位
        /// </summary>
        public bool IsDelete { get; set; }= false;


        /// <summary>
        /// 计划开始时间
        /// </summary>
        /// 
        public DateTime PlanStartTime { get; set; }

        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime PlanEndTime { get; set; }

        /// <summary>
        /// 计划产量
        /// </summary>

        public string yield { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 生产物品表  Materialmanagement
        /// </summary>
        public int MId { get; set; }

        /// <summary>
        /// 生产工单主键
        /// </summary>
        public int WorkOrderId { get; set; }

        /// <summary>
        /// 生产单创建时间
        /// </summary>
        public DateTime ProductionordersTime { get; set; }

        /// <summary>
        /// 工艺流程表  Process
        /// </summary>

        public int ProcessID { get; set; }




    }
}
